import { request } from "@/utils/request";

export const GetSpecialty = () => {
    return request({
        url: `/api/Specialty`,
        method: 'get'
    })
}

export const PostSpecialty = (data: any) => {
    return request({
        url: `/api/Specialty`,
        method: 'post',
        data: data
    })
}

export const PutSpecialty = (id: number, data: any) => {
    return request({
        url: `/api/Specialty/${id}`,
        method: 'put',
        data: data
    })
}

export const DeleteSpecialty = (id: number) => {
    return request({
        url: `/api/Specialty/${id}`,
        method: 'delete'
    })
}